package com.xilophone;

import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.os.Handler.Callback;
import android.os.Message;

public class XilophoneActivity extends Activity {
    /** Called when the activity is first created. */

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.intro);
        
        MediaPlayer mpSplash = MediaPlayer.create(this, R.raw.intro);
        mpSplash.start();
   
        Handler starthandler = new Handler(new Callback() {

			public boolean handleMessage(Message msg) {
				Intent i = new Intent(XilophoneActivity.this,myMenu.class);
				startActivity(i);
				finish();
				return false;
			}
		});
		
		starthandler.sendEmptyMessageDelayed(0, 2000);
    }
    
}